<template>
	<view>
		<!-- <a href="http://dsc.it8851.com/index/index/home?visiter_id=&visiter_name=&avatar=&business_id=3&groupid=0&special=4"></a> -->
		<iframe v-if="flag" :src='serivcer'></iframe>
		<view class="serciver" v-else>
		</view>
	</view>
</template>

<script>

	export default {
		data() {
			return {
				flag:true,
				serivcer:''
			}
		},
		onShow() {	
		
			// if(window.navigator.onLine){
			// 	this.flag = true
			// }else{
			// 	this.flag = false
			// }
			this.servers()
			uni.hideTabBarRedDot({
				index:3
			})
		},
		
		methods: {
			servers(){
				this.$ajax(
					this.apiList.server,
					'POST',
				).then(res=>{
					this.serivcer = res.url
				})
			}
			
		},
	}
</script>

<style lang="scss" scoped>
iframe{
	width: 100vw;
	height: 86vh;
}
.serciver{
	background: url(../../static/images/s59.png) no-repeat;
	background-size: 100%;
	width: 550upx;
	height: 479upx;
	margin: 40% auto;
}
</style>
